package com.mmf.dao;

import com.mmf.model.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by MMF on 2017/6/14.
 */
public interface IUserDao {
    List<User> queryAll(String name);
    @Select("select * from tb_user where name = #{name} and password = #{password}")
    User login(@Param("name") String name, @Param("password") String password);
}
